package graph.element.shape;
import graph.GraphPanel;
import graph.color.Color;

import java.awt.Graphics;



public class None extends Shape {

	private int width;
	private java.awt.Color color;
	public None(GraphPanel graphingData, boolean value, Color color, int x, int y, int xInc, int yInc, int val, int max) {
		super(graphingData, x,y, value, color, val,max);
		this.width = Math.min(xInc, yInc) -1;
		this.color = color.get((float) (Math.log(val)/Math.log(max)));
	}
	public void draw() {
		Graphics g = getG();
		java.awt.Color restore = g.getColor();
		g.setColor(color);
	    g.fillRect((int)x-width/2,(int)y-width/2,width,width);
	    g.setColor(restore);
	    drawValue();
	}
}
